<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<center>
<p>
  <% 
     String s =  (String)request.getAttribute("error");
     if(s!=null)
           out.println("<font color='red'>"+s+"</font>"); 
   %>
</p>
<form action="category.do?act=doUpdateCategory&cid=${category.id}" method="post">
 <label>分类名</label><input type="text" name="name" value='${category.name}'/><br>
 <label>描述</label> <textarea name="desc"  >${category.desc}</textarea><br>
 
 <label>用户名</label><input type="text" name="bid" value='${category.id}'/><br>
 <input type="submit" value="提交"><br>
</form>
</center>

</body>
</html>